<template>
  <div class="info-item">
    <ul>
    	<li v-for="it in list">
    	  <a :href="it.href">
    	  <img class="info-icon" :src="it.img"/>
    	  <div class="info-box">
    	  	<h2>{{it.title}}</h2>
    	  	<p>{{it.content}}</p>
    	  	<p class="info-date">{{it.date}}</p>
    	  </div>
    	  </a>
    	</li>
    </ul>
  </div>
</template>
<script>
  export default{
    name:'InfoItem',
    props:{
      list:Array
    },
    data(){
      return{
      }
    }
  }
</script>
<style scoped>
ul{margin: 0;padding: 0;list-style: none;text-align: center;margin: auto;padding-bottom: 40px;}
li{
  padding: 10px;
  overflow: hidden;
  position: relative;
  text-align: left;
  transition:all .2s;
  border-bottom: solid 3px #E8E8E8;
}
li:last-child{border-bottom: none;}
h2{
  transition:all .3s;
  font-size: 14px;
  white-space: nowrap;overflow: hidden;
  text-overflow: ellipsis;
  margin:-2px auto 0 ;color: #333;
}
p{
  margin: 19px 0;
  overflow: hidden;
  height: 32px;
  font-size: 11px;color: #909090;
}
.info-date{
  height: auto;
  margin-bottom: 0;
}
.info-icon{
  display: inline-block;
  width: 150px;
  height: 100px;
  float: left;
}
.info-box{
  position: absolute;
  display: inline-block;
  left: 165px;
  right: 10px;  
}
	.info-item{
	}
</style>